#include <iostream>
#include "SaveInfoServices/AppSaveInfo.hpp"

#include "nlohmann/json.hpp"
#include <string>
#include <fstream>
#include <sstream>
#include <io.h>
#include <stdio.h>

// 使用别名，使代码更简洁  
using json = nlohmann::json;

struct Person {  
    std::string name;  
    int age;  
    std::string address;  
};  

int main() {  
    // std::string json_string = R"({"name":"Alice", "age":30, "address":"123 Street"})";  
  
    // // 将字符串解析为 json 对象  
    // json j = json::parse(json_string);  
  
    // // 从 json 对象中提取数据并创建 Person 对象  
    // Person p;  
    // p.name = j["name"];  
    // p.age = j["age"];  
    // p.address = j["address"];  
  
    // // 输出 Person 对象的信息  
    // std::cout << "Name: " << p.name << ", Age: " << p.age << ", Address: " << p.address << std::endl;  
  

    PokerBoxSaveInfoServices::AppSaveInfo saveInfo;

    saveInfo.Deserialize();

    saveInfo.Serialize();

    return 0;  
}